from rest_framework import serializers
from shopcart.models import CartModel

class CartSerializer(serializers.ModelSerializer):
    class Meta:
        model = CartModel
        fields = ['id', 'user', 'created_at', 'product']